import { app, globalShortcut,  webContents  } from 'electron'
import {events} from "@/ts.d/native/events";

const log = function () {
  console.log("shorCut detected")
}


app.whenReady().then(()=>{
  globalShortcut.register("CmdOrCtrl+`", ()=>{
    log()
    webContents.getAllWebContents().forEach(item=>{
      item.send(events.TOGGLE_PLAY)
    })
  })
})




